package com.egdk.api.entity;

import java.util.ArrayList;
import java.util.List;

public class DICOMStudiesEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DICOMStudiesEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStudyinstaIsNull() {
            addCriterion("StudyInsta is null");
            return (Criteria) this;
        }

        public Criteria andStudyinstaIsNotNull() {
            addCriterion("StudyInsta is not null");
            return (Criteria) this;
        }

        public Criteria andStudyinstaEqualTo(String value) {
            addCriterion("StudyInsta =", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotEqualTo(String value) {
            addCriterion("StudyInsta <>", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaGreaterThan(String value) {
            addCriterion("StudyInsta >", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaGreaterThanOrEqualTo(String value) {
            addCriterion("StudyInsta >=", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLessThan(String value) {
            addCriterion("StudyInsta <", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLessThanOrEqualTo(String value) {
            addCriterion("StudyInsta <=", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLike(String value) {
            addCriterion("StudyInsta like", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotLike(String value) {
            addCriterion("StudyInsta not like", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaIn(List<String> values) {
            addCriterion("StudyInsta in", values, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotIn(List<String> values) {
            addCriterion("StudyInsta not in", values, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaBetween(String value1, String value2) {
            addCriterion("StudyInsta between", value1, value2, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotBetween(String value1, String value2) {
            addCriterion("StudyInsta not between", value1, value2, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudydateIsNull() {
            addCriterion("StudyDate is null");
            return (Criteria) this;
        }

        public Criteria andStudydateIsNotNull() {
            addCriterion("StudyDate is not null");
            return (Criteria) this;
        }

        public Criteria andStudydateEqualTo(String value) {
            addCriterion("StudyDate =", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotEqualTo(String value) {
            addCriterion("StudyDate <>", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateGreaterThan(String value) {
            addCriterion("StudyDate >", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateGreaterThanOrEqualTo(String value) {
            addCriterion("StudyDate >=", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLessThan(String value) {
            addCriterion("StudyDate <", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLessThanOrEqualTo(String value) {
            addCriterion("StudyDate <=", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLike(String value) {
            addCriterion("StudyDate like", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotLike(String value) {
            addCriterion("StudyDate not like", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateIn(List<String> values) {
            addCriterion("StudyDate in", values, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotIn(List<String> values) {
            addCriterion("StudyDate not in", values, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateBetween(String value1, String value2) {
            addCriterion("StudyDate between", value1, value2, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotBetween(String value1, String value2) {
            addCriterion("StudyDate not between", value1, value2, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudytimeIsNull() {
            addCriterion("StudyTime is null");
            return (Criteria) this;
        }

        public Criteria andStudytimeIsNotNull() {
            addCriterion("StudyTime is not null");
            return (Criteria) this;
        }

        public Criteria andStudytimeEqualTo(String value) {
            addCriterion("StudyTime =", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeNotEqualTo(String value) {
            addCriterion("StudyTime <>", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeGreaterThan(String value) {
            addCriterion("StudyTime >", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeGreaterThanOrEqualTo(String value) {
            addCriterion("StudyTime >=", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeLessThan(String value) {
            addCriterion("StudyTime <", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeLessThanOrEqualTo(String value) {
            addCriterion("StudyTime <=", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeLike(String value) {
            addCriterion("StudyTime like", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeNotLike(String value) {
            addCriterion("StudyTime not like", value, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeIn(List<String> values) {
            addCriterion("StudyTime in", values, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeNotIn(List<String> values) {
            addCriterion("StudyTime not in", values, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeBetween(String value1, String value2) {
            addCriterion("StudyTime between", value1, value2, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudytimeNotBetween(String value1, String value2) {
            addCriterion("StudyTime not between", value1, value2, "studytime");
            return (Criteria) this;
        }

        public Criteria andStudyidIsNull() {
            addCriterion("StudyID is null");
            return (Criteria) this;
        }

        public Criteria andStudyidIsNotNull() {
            addCriterion("StudyID is not null");
            return (Criteria) this;
        }

        public Criteria andStudyidEqualTo(String value) {
            addCriterion("StudyID =", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidNotEqualTo(String value) {
            addCriterion("StudyID <>", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidGreaterThan(String value) {
            addCriterion("StudyID >", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidGreaterThanOrEqualTo(String value) {
            addCriterion("StudyID >=", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidLessThan(String value) {
            addCriterion("StudyID <", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidLessThanOrEqualTo(String value) {
            addCriterion("StudyID <=", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidLike(String value) {
            addCriterion("StudyID like", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidNotLike(String value) {
            addCriterion("StudyID not like", value, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidIn(List<String> values) {
            addCriterion("StudyID in", values, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidNotIn(List<String> values) {
            addCriterion("StudyID not in", values, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidBetween(String value1, String value2) {
            addCriterion("StudyID between", value1, value2, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudyidNotBetween(String value1, String value2) {
            addCriterion("StudyID not between", value1, value2, "studyid");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionIsNull() {
            addCriterion("StudyDescription is null");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionIsNotNull() {
            addCriterion("StudyDescription is not null");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionEqualTo(String value) {
            addCriterion("StudyDescription =", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionNotEqualTo(String value) {
            addCriterion("StudyDescription <>", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionGreaterThan(String value) {
            addCriterion("StudyDescription >", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("StudyDescription >=", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionLessThan(String value) {
            addCriterion("StudyDescription <", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionLessThanOrEqualTo(String value) {
            addCriterion("StudyDescription <=", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionLike(String value) {
            addCriterion("StudyDescription like", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionNotLike(String value) {
            addCriterion("StudyDescription not like", value, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionIn(List<String> values) {
            addCriterion("StudyDescription in", values, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionNotIn(List<String> values) {
            addCriterion("StudyDescription not in", values, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionBetween(String value1, String value2) {
            addCriterion("StudyDescription between", value1, value2, "studydescription");
            return (Criteria) this;
        }

        public Criteria andStudydescriptionNotBetween(String value1, String value2) {
            addCriterion("StudyDescription not between", value1, value2, "studydescription");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberIsNull() {
            addCriterion("AccessionNumber is null");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberIsNotNull() {
            addCriterion("AccessionNumber is not null");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberEqualTo(String value) {
            addCriterion("AccessionNumber =", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberNotEqualTo(String value) {
            addCriterion("AccessionNumber <>", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberGreaterThan(String value) {
            addCriterion("AccessionNumber >", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberGreaterThanOrEqualTo(String value) {
            addCriterion("AccessionNumber >=", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberLessThan(String value) {
            addCriterion("AccessionNumber <", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberLessThanOrEqualTo(String value) {
            addCriterion("AccessionNumber <=", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberLike(String value) {
            addCriterion("AccessionNumber like", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberNotLike(String value) {
            addCriterion("AccessionNumber not like", value, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberIn(List<String> values) {
            addCriterion("AccessionNumber in", values, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberNotIn(List<String> values) {
            addCriterion("AccessionNumber not in", values, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberBetween(String value1, String value2) {
            addCriterion("AccessionNumber between", value1, value2, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andAccessionnumberNotBetween(String value1, String value2) {
            addCriterion("AccessionNumber not between", value1, value2, "accessionnumber");
            return (Criteria) this;
        }

        public Criteria andReferphysicianIsNull() {
            addCriterion("ReferPhysician is null");
            return (Criteria) this;
        }

        public Criteria andReferphysicianIsNotNull() {
            addCriterion("ReferPhysician is not null");
            return (Criteria) this;
        }

        public Criteria andReferphysicianEqualTo(String value) {
            addCriterion("ReferPhysician =", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianNotEqualTo(String value) {
            addCriterion("ReferPhysician <>", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianGreaterThan(String value) {
            addCriterion("ReferPhysician >", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianGreaterThanOrEqualTo(String value) {
            addCriterion("ReferPhysician >=", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianLessThan(String value) {
            addCriterion("ReferPhysician <", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianLessThanOrEqualTo(String value) {
            addCriterion("ReferPhysician <=", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianLike(String value) {
            addCriterion("ReferPhysician like", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianNotLike(String value) {
            addCriterion("ReferPhysician not like", value, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianIn(List<String> values) {
            addCriterion("ReferPhysician in", values, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianNotIn(List<String> values) {
            addCriterion("ReferPhysician not in", values, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianBetween(String value1, String value2) {
            addCriterion("ReferPhysician between", value1, value2, "referphysician");
            return (Criteria) this;
        }

        public Criteria andReferphysicianNotBetween(String value1, String value2) {
            addCriterion("ReferPhysician not between", value1, value2, "referphysician");
            return (Criteria) this;
        }

        public Criteria andPatientsageIsNull() {
            addCriterion("PatientsAge is null");
            return (Criteria) this;
        }

        public Criteria andPatientsageIsNotNull() {
            addCriterion("PatientsAge is not null");
            return (Criteria) this;
        }

        public Criteria andPatientsageEqualTo(String value) {
            addCriterion("PatientsAge =", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageNotEqualTo(String value) {
            addCriterion("PatientsAge <>", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageGreaterThan(String value) {
            addCriterion("PatientsAge >", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageGreaterThanOrEqualTo(String value) {
            addCriterion("PatientsAge >=", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageLessThan(String value) {
            addCriterion("PatientsAge <", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageLessThanOrEqualTo(String value) {
            addCriterion("PatientsAge <=", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageLike(String value) {
            addCriterion("PatientsAge like", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageNotLike(String value) {
            addCriterion("PatientsAge not like", value, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageIn(List<String> values) {
            addCriterion("PatientsAge in", values, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageNotIn(List<String> values) {
            addCriterion("PatientsAge not in", values, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageBetween(String value1, String value2) {
            addCriterion("PatientsAge between", value1, value2, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsageNotBetween(String value1, String value2) {
            addCriterion("PatientsAge not between", value1, value2, "patientsage");
            return (Criteria) this;
        }

        public Criteria andPatientsweightIsNull() {
            addCriterion("PatientsWeight is null");
            return (Criteria) this;
        }

        public Criteria andPatientsweightIsNotNull() {
            addCriterion("PatientsWeight is not null");
            return (Criteria) this;
        }

        public Criteria andPatientsweightEqualTo(String value) {
            addCriterion("PatientsWeight =", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightNotEqualTo(String value) {
            addCriterion("PatientsWeight <>", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightGreaterThan(String value) {
            addCriterion("PatientsWeight >", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightGreaterThanOrEqualTo(String value) {
            addCriterion("PatientsWeight >=", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightLessThan(String value) {
            addCriterion("PatientsWeight <", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightLessThanOrEqualTo(String value) {
            addCriterion("PatientsWeight <=", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightLike(String value) {
            addCriterion("PatientsWeight like", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightNotLike(String value) {
            addCriterion("PatientsWeight not like", value, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightIn(List<String> values) {
            addCriterion("PatientsWeight in", values, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightNotIn(List<String> values) {
            addCriterion("PatientsWeight not in", values, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightBetween(String value1, String value2) {
            addCriterion("PatientsWeight between", value1, value2, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andPatientsweightNotBetween(String value1, String value2) {
            addCriterion("PatientsWeight not between", value1, value2, "patientsweight");
            return (Criteria) this;
        }

        public Criteria andStudymodalityIsNull() {
            addCriterion("StudyModality is null");
            return (Criteria) this;
        }

        public Criteria andStudymodalityIsNotNull() {
            addCriterion("StudyModality is not null");
            return (Criteria) this;
        }

        public Criteria andStudymodalityEqualTo(String value) {
            addCriterion("StudyModality =", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityNotEqualTo(String value) {
            addCriterion("StudyModality <>", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityGreaterThan(String value) {
            addCriterion("StudyModality >", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityGreaterThanOrEqualTo(String value) {
            addCriterion("StudyModality >=", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityLessThan(String value) {
            addCriterion("StudyModality <", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityLessThanOrEqualTo(String value) {
            addCriterion("StudyModality <=", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityLike(String value) {
            addCriterion("StudyModality like", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityNotLike(String value) {
            addCriterion("StudyModality not like", value, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityIn(List<String> values) {
            addCriterion("StudyModality in", values, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityNotIn(List<String> values) {
            addCriterion("StudyModality not in", values, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityBetween(String value1, String value2) {
            addCriterion("StudyModality between", value1, value2, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStudymodalityNotBetween(String value1, String value2) {
            addCriterion("StudyModality not between", value1, value2, "studymodality");
            return (Criteria) this;
        }

        public Criteria andStationnameIsNull() {
            addCriterion("StationName is null");
            return (Criteria) this;
        }

        public Criteria andStationnameIsNotNull() {
            addCriterion("StationName is not null");
            return (Criteria) this;
        }

        public Criteria andStationnameEqualTo(String value) {
            addCriterion("StationName =", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameNotEqualTo(String value) {
            addCriterion("StationName <>", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameGreaterThan(String value) {
            addCriterion("StationName >", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameGreaterThanOrEqualTo(String value) {
            addCriterion("StationName >=", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameLessThan(String value) {
            addCriterion("StationName <", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameLessThanOrEqualTo(String value) {
            addCriterion("StationName <=", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameLike(String value) {
            addCriterion("StationName like", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameNotLike(String value) {
            addCriterion("StationName not like", value, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameIn(List<String> values) {
            addCriterion("StationName in", values, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameNotIn(List<String> values) {
            addCriterion("StationName not in", values, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameBetween(String value1, String value2) {
            addCriterion("StationName between", value1, value2, "stationname");
            return (Criteria) this;
        }

        public Criteria andStationnameNotBetween(String value1, String value2) {
            addCriterion("StationName not between", value1, value2, "stationname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameIsNull() {
            addCriterion("InstitutionName is null");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameIsNotNull() {
            addCriterion("InstitutionName is not null");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameEqualTo(String value) {
            addCriterion("InstitutionName =", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameNotEqualTo(String value) {
            addCriterion("InstitutionName <>", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameGreaterThan(String value) {
            addCriterion("InstitutionName >", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameGreaterThanOrEqualTo(String value) {
            addCriterion("InstitutionName >=", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameLessThan(String value) {
            addCriterion("InstitutionName <", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameLessThanOrEqualTo(String value) {
            addCriterion("InstitutionName <=", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameLike(String value) {
            addCriterion("InstitutionName like", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameNotLike(String value) {
            addCriterion("InstitutionName not like", value, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameIn(List<String> values) {
            addCriterion("InstitutionName in", values, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameNotIn(List<String> values) {
            addCriterion("InstitutionName not in", values, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameBetween(String value1, String value2) {
            addCriterion("InstitutionName between", value1, value2, "institutionname");
            return (Criteria) this;
        }

        public Criteria andInstitutionnameNotBetween(String value1, String value2) {
            addCriterion("InstitutionName not between", value1, value2, "institutionname");
            return (Criteria) this;
        }

        public Criteria andPatientnameIsNull() {
            addCriterion("PatientName is null");
            return (Criteria) this;
        }

        public Criteria andPatientnameIsNotNull() {
            addCriterion("PatientName is not null");
            return (Criteria) this;
        }

        public Criteria andPatientnameEqualTo(String value) {
            addCriterion("PatientName =", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotEqualTo(String value) {
            addCriterion("PatientName <>", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameGreaterThan(String value) {
            addCriterion("PatientName >", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameGreaterThanOrEqualTo(String value) {
            addCriterion("PatientName >=", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLessThan(String value) {
            addCriterion("PatientName <", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLessThanOrEqualTo(String value) {
            addCriterion("PatientName <=", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLike(String value) {
            addCriterion("PatientName like", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotLike(String value) {
            addCriterion("PatientName not like", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameIn(List<String> values) {
            addCriterion("PatientName in", values, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotIn(List<String> values) {
            addCriterion("PatientName not in", values, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameBetween(String value1, String value2) {
            addCriterion("PatientName between", value1, value2, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotBetween(String value1, String value2) {
            addCriterion("PatientName not between", value1, value2, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateIsNull() {
            addCriterion("PatientBirthDate is null");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateIsNotNull() {
            addCriterion("PatientBirthDate is not null");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateEqualTo(String value) {
            addCriterion("PatientBirthDate =", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateNotEqualTo(String value) {
            addCriterion("PatientBirthDate <>", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateGreaterThan(String value) {
            addCriterion("PatientBirthDate >", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateGreaterThanOrEqualTo(String value) {
            addCriterion("PatientBirthDate >=", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateLessThan(String value) {
            addCriterion("PatientBirthDate <", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateLessThanOrEqualTo(String value) {
            addCriterion("PatientBirthDate <=", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateLike(String value) {
            addCriterion("PatientBirthDate like", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateNotLike(String value) {
            addCriterion("PatientBirthDate not like", value, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateIn(List<String> values) {
            addCriterion("PatientBirthDate in", values, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateNotIn(List<String> values) {
            addCriterion("PatientBirthDate not in", values, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateBetween(String value1, String value2) {
            addCriterion("PatientBirthDate between", value1, value2, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientbirthdateNotBetween(String value1, String value2) {
            addCriterion("PatientBirthDate not between", value1, value2, "patientbirthdate");
            return (Criteria) this;
        }

        public Criteria andPatientsexIsNull() {
            addCriterion("PatientSex is null");
            return (Criteria) this;
        }

        public Criteria andPatientsexIsNotNull() {
            addCriterion("PatientSex is not null");
            return (Criteria) this;
        }

        public Criteria andPatientsexEqualTo(String value) {
            addCriterion("PatientSex =", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexNotEqualTo(String value) {
            addCriterion("PatientSex <>", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexGreaterThan(String value) {
            addCriterion("PatientSex >", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexGreaterThanOrEqualTo(String value) {
            addCriterion("PatientSex >=", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexLessThan(String value) {
            addCriterion("PatientSex <", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexLessThanOrEqualTo(String value) {
            addCriterion("PatientSex <=", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexLike(String value) {
            addCriterion("PatientSex like", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexNotLike(String value) {
            addCriterion("PatientSex not like", value, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexIn(List<String> values) {
            addCriterion("PatientSex in", values, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexNotIn(List<String> values) {
            addCriterion("PatientSex not in", values, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexBetween(String value1, String value2) {
            addCriterion("PatientSex between", value1, value2, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientsexNotBetween(String value1, String value2) {
            addCriterion("PatientSex not between", value1, value2, "patientsex");
            return (Criteria) this;
        }

        public Criteria andPatientidIsNull() {
            addCriterion("PatientID is null");
            return (Criteria) this;
        }

        public Criteria andPatientidIsNotNull() {
            addCriterion("PatientID is not null");
            return (Criteria) this;
        }

        public Criteria andPatientidEqualTo(String value) {
            addCriterion("PatientID =", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotEqualTo(String value) {
            addCriterion("PatientID <>", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThan(String value) {
            addCriterion("PatientID >", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThanOrEqualTo(String value) {
            addCriterion("PatientID >=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThan(String value) {
            addCriterion("PatientID <", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThanOrEqualTo(String value) {
            addCriterion("PatientID <=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLike(String value) {
            addCriterion("PatientID like", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotLike(String value) {
            addCriterion("PatientID not like", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidIn(List<String> values) {
            addCriterion("PatientID in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotIn(List<String> values) {
            addCriterion("PatientID not in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidBetween(String value1, String value2) {
            addCriterion("PatientID between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotBetween(String value1, String value2) {
            addCriterion("PatientID not between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientsizeIsNull() {
            addCriterion("PatientSize is null");
            return (Criteria) this;
        }

        public Criteria andPatientsizeIsNotNull() {
            addCriterion("PatientSize is not null");
            return (Criteria) this;
        }

        public Criteria andPatientsizeEqualTo(String value) {
            addCriterion("PatientSize =", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeNotEqualTo(String value) {
            addCriterion("PatientSize <>", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeGreaterThan(String value) {
            addCriterion("PatientSize >", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeGreaterThanOrEqualTo(String value) {
            addCriterion("PatientSize >=", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeLessThan(String value) {
            addCriterion("PatientSize <", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeLessThanOrEqualTo(String value) {
            addCriterion("PatientSize <=", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeLike(String value) {
            addCriterion("PatientSize like", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeNotLike(String value) {
            addCriterion("PatientSize not like", value, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeIn(List<String> values) {
            addCriterion("PatientSize in", values, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeNotIn(List<String> values) {
            addCriterion("PatientSize not in", values, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeBetween(String value1, String value2) {
            addCriterion("PatientSize between", value1, value2, "patientsize");
            return (Criteria) this;
        }

        public Criteria andPatientsizeNotBetween(String value1, String value2) {
            addCriterion("PatientSize not between", value1, value2, "patientsize");
            return (Criteria) this;
        }

        public Criteria andAccesstimeIsNull() {
            addCriterion("AccessTime is null");
            return (Criteria) this;
        }

        public Criteria andAccesstimeIsNotNull() {
            addCriterion("AccessTime is not null");
            return (Criteria) this;
        }

        public Criteria andAccesstimeEqualTo(Integer value) {
            addCriterion("AccessTime =", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeNotEqualTo(Integer value) {
            addCriterion("AccessTime <>", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeGreaterThan(Integer value) {
            addCriterion("AccessTime >", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("AccessTime >=", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeLessThan(Integer value) {
            addCriterion("AccessTime <", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeLessThanOrEqualTo(Integer value) {
            addCriterion("AccessTime <=", value, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeIn(List<Integer> values) {
            addCriterion("AccessTime in", values, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeNotIn(List<Integer> values) {
            addCriterion("AccessTime not in", values, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeBetween(Integer value1, Integer value2) {
            addCriterion("AccessTime between", value1, value2, "accesstime");
            return (Criteria) this;
        }

        public Criteria andAccesstimeNotBetween(Integer value1, Integer value2) {
            addCriterion("AccessTime not between", value1, value2, "accesstime");
            return (Criteria) this;
        }

        public Criteria andQtimestampIsNull() {
            addCriterion("qTimeStamp is null");
            return (Criteria) this;
        }

        public Criteria andQtimestampIsNotNull() {
            addCriterion("qTimeStamp is not null");
            return (Criteria) this;
        }

        public Criteria andQtimestampEqualTo(Integer value) {
            addCriterion("qTimeStamp =", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampNotEqualTo(Integer value) {
            addCriterion("qTimeStamp <>", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampGreaterThan(Integer value) {
            addCriterion("qTimeStamp >", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampGreaterThanOrEqualTo(Integer value) {
            addCriterion("qTimeStamp >=", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampLessThan(Integer value) {
            addCriterion("qTimeStamp <", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampLessThanOrEqualTo(Integer value) {
            addCriterion("qTimeStamp <=", value, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampIn(List<Integer> values) {
            addCriterion("qTimeStamp in", values, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampNotIn(List<Integer> values) {
            addCriterion("qTimeStamp not in", values, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampBetween(Integer value1, Integer value2) {
            addCriterion("qTimeStamp between", value1, value2, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQtimestampNotBetween(Integer value1, Integer value2) {
            addCriterion("qTimeStamp not between", value1, value2, "qtimestamp");
            return (Criteria) this;
        }

        public Criteria andQflagsIsNull() {
            addCriterion("qFlags is null");
            return (Criteria) this;
        }

        public Criteria andQflagsIsNotNull() {
            addCriterion("qFlags is not null");
            return (Criteria) this;
        }

        public Criteria andQflagsEqualTo(Integer value) {
            addCriterion("qFlags =", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsNotEqualTo(Integer value) {
            addCriterion("qFlags <>", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsGreaterThan(Integer value) {
            addCriterion("qFlags >", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsGreaterThanOrEqualTo(Integer value) {
            addCriterion("qFlags >=", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsLessThan(Integer value) {
            addCriterion("qFlags <", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsLessThanOrEqualTo(Integer value) {
            addCriterion("qFlags <=", value, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsIn(List<Integer> values) {
            addCriterion("qFlags in", values, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsNotIn(List<Integer> values) {
            addCriterion("qFlags not in", values, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsBetween(Integer value1, Integer value2) {
            addCriterion("qFlags between", value1, value2, "qflags");
            return (Criteria) this;
        }

        public Criteria andQflagsNotBetween(Integer value1, Integer value2) {
            addCriterion("qFlags not between", value1, value2, "qflags");
            return (Criteria) this;
        }

        public Criteria andQspareIsNull() {
            addCriterion("qSpare is null");
            return (Criteria) this;
        }

        public Criteria andQspareIsNotNull() {
            addCriterion("qSpare is not null");
            return (Criteria) this;
        }

        public Criteria andQspareEqualTo(String value) {
            addCriterion("qSpare =", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareNotEqualTo(String value) {
            addCriterion("qSpare <>", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareGreaterThan(String value) {
            addCriterion("qSpare >", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareGreaterThanOrEqualTo(String value) {
            addCriterion("qSpare >=", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareLessThan(String value) {
            addCriterion("qSpare <", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareLessThanOrEqualTo(String value) {
            addCriterion("qSpare <=", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareLike(String value) {
            addCriterion("qSpare like", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareNotLike(String value) {
            addCriterion("qSpare not like", value, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareIn(List<String> values) {
            addCriterion("qSpare in", values, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareNotIn(List<String> values) {
            addCriterion("qSpare not in", values, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareBetween(String value1, String value2) {
            addCriterion("qSpare between", value1, value2, "qspare");
            return (Criteria) this;
        }

        public Criteria andQspareNotBetween(String value1, String value2) {
            addCriterion("qSpare not between", value1, value2, "qspare");
            return (Criteria) this;
        }

        public Criteria andCallingaeIsNull() {
            addCriterion("CallingAE is null");
            return (Criteria) this;
        }

        public Criteria andCallingaeIsNotNull() {
            addCriterion("CallingAE is not null");
            return (Criteria) this;
        }

        public Criteria andCallingaeEqualTo(String value) {
            addCriterion("CallingAE =", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeNotEqualTo(String value) {
            addCriterion("CallingAE <>", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeGreaterThan(String value) {
            addCriterion("CallingAE >", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeGreaterThanOrEqualTo(String value) {
            addCriterion("CallingAE >=", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeLessThan(String value) {
            addCriterion("CallingAE <", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeLessThanOrEqualTo(String value) {
            addCriterion("CallingAE <=", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeLike(String value) {
            addCriterion("CallingAE like", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeNotLike(String value) {
            addCriterion("CallingAE not like", value, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeIn(List<String> values) {
            addCriterion("CallingAE in", values, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeNotIn(List<String> values) {
            addCriterion("CallingAE not in", values, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeBetween(String value1, String value2) {
            addCriterion("CallingAE between", value1, value2, "callingae");
            return (Criteria) this;
        }

        public Criteria andCallingaeNotBetween(String value1, String value2) {
            addCriterion("CallingAE not between", value1, value2, "callingae");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}